home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Drop Down Menu.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
9KB
|
405 lines
[SUBJECT]
Description=Drop down menu Script
ImageIndex=-1
Folder=Menus
[HEAD_TEXT]
;
;<script language="JavaScript1.2">
;
;/*
;Drop down menu link
;⌐ Dynamic Drive (www.dynamicdrive.com)
;For full source code, installation instructions,
;100's more DHTML scripts, and Terms Of
;Use, visit dynamicdrive.com
;*/
;
;//Contents for menu 1
;var menu1=new Array();
;menu1[0]='<a href=`link00`>`caption00`</a><br>';
;menu1[1]='<a href=`link01`>`caption01` here</a><br>';
;menu1[2]='<a href=`link02`>`caption02`</a><br>';
;//Contents for menu 2
;var menu2=new Array();
;menu2[0]='<a href=`link10`>`caption10`</a><br>';
;menu2[1]='<a href=`link11`>`caption11`</a><br>';
;menu2[2]='<a href=`link12`>`caption12`</a><br>';
;//Contents for menu 3
;var menu3=new Array();
;menu3[0]='<a href=`link20`>`caption20`</a><br>';
;menu3[1]='<a href=`link21`>`caption21`</a><br>';
;menu3[2]='<a href=`link22`>`caption22`</a><br>';
;//Contents for menu 4
;var menu4=new Array();
;menu4[0]='<a href=`link30`>`caption30`</a><br>';
;menu4[1]='<a href=`link31`>`caption31`</a><br>';
;menu4[2]='<a href=`link32`>`caption32`</a><br>';
;//Contents for menu 5
;var menu5=new Array();
;menu5[0]='<a href=`link40`>`caption40`</a><br>';
;menu5[1]='<a href=`link41`>`caption41`</a><br>';
;menu5[2]='<a href=`link42`>`caption42`</a><br>';
;
;
;</script>
;
;<style>
;<!--
;.iewrap1{
;position:relative;
;height:30px;
;}
;.iewrap2{
;position:absolute;
;}
;#dropmenu0, #dropmenu1, #dropmenu2, #dropmenu3, #dropmenu4{
;visibility:hidden;
;z-index:100;
;}
;-->
;</style>
;
[BODY_TEXT]
;
;<script language="JavaScript1.2">
;//reusable/////////////////////////////
;var zindex=100;
;function dropit2(whichone){
;if (window.themenu&&themenu.id!=whichone.id)
;themenu.style.visibility="hidden";
;themenu=whichone;
;if (document.all){
;themenu.style.left=document.body.scrollLeft+event.clientX-event.offsetX;
;themenu.style.top=document.body.scrollTop+event.clientY-event.offsetY+18;
;if (themenu.style.visibility=="hidden"){
;themenu.style.visibility="visible";
;themenu.style.zIndex=zindex++;
;}
;else{
;hidemenu();
;}
;}
;}
;
;function dropit(e,whichone){
;if (window.themenu&&themenu.id!=eval(whichone).id)
;themenu.visibility="hide";
;themenu=eval(whichone);
;if (themenu.visibility=="hide")
;themenu.visibility="show";
;else
;themenu.visibility="hide";
;themenu.zIndex++;
;themenu.left=e.pageX-e.layerX;
;themenu.top=e.pageY-e.layerY+19;
;return false;
;}
;
;function hidemenu(whichone){
;if (window.themenu)
;themenu.style.visibility="hidden";
;}
;
;function hidemenu2(){
;themenu.visibility="hide";
;}
;
;if (document.all)
;document.body.onclick=hidemenu;
;
;//reusable/////////////////////////////
;</script>
;
;<!----------Menu 1 starts here---------->
;
;<ilayer height="35px">
;<layer visibility="show">
;<span class="iewrap1">
;<span class="iewrap2" onClick="dropit2(dropmenu0);event.cancelBubble=true;return false"><font face="Verdana"><b><a href="alternate.htm" onClick="if(document.layers) return dropit(event, 'document.dropmenu0')">Click here</a></b></font>
;</span>
;</span>
;</layer>
;</ilayer><br>
;<!----------Menu 1 ends here---------->
;
;
;<!----------Menu 2 starts here---------->
;
;<ilayer height="35px">
;<layer visibility="show">
;<span class="iewrap1">
;<span class="iewrap2" onClick="dropit2(dropmenu1);event.cancelBubble=true;return false"><font face=Verdana><b><a href="alternate.htm" onClick="if(document.layers) return dropit(event, 'document.dropmenu1')">Click here</a></b></font>
;</span>
;</span>
;</layer>
;</ilayer><br>
;<!----------Menu 2 ends here---------->
;
;
;<!----------Menu 3 starts here---------->
;
;<ilayer height="35px">
;<layer visibility="show">
;<span class="iewrap1">
;<span class="iewrap2" onClick="dropit2(dropmenu2);event.cancelBubble=true;return false"><font face=Verdana><b><a href="alternate.htm" onClick="if(document.layers) return dropit(event, 'document.dropmenu2')">Click here</a></b></font>
;</span>
;</span>
;</layer>
;</ilayer><br>
;<!----------Menu 3 ends here---------->
;
;
;<!----------Menu 4 starts here---------->
;
;<ilayer height="35px">
;<layer visibility="show">
;<span class="iewrap1">
;<span class="iewrap2" onClick="dropit2(dropmenu3);event.cancelBubble=true;return false"><font face=Verdana><b><a href="alternate.htm" onClick="if(document.layers) return dropit(event, 'document.dropmenu3')">Click here</a></b></font>
;</span>
;</span>
;</layer>
;</ilayer><br>
;<!----------Menu 4 ends here---------->
;
;
;<!----------Menu 5 starts here---------->
;
;<ilayer height="35px">
;<layer visibility="show">
;<span class="iewrap1">
;<span class="iewrap2" onClick="dropit2(dropmenu4);event.cancelBubble=true;return false"><font face=Verdana><b><a href="alternate.htm" onClick="if(document.layers) return dropit(event, 'document.dropmenu4')">Click here</a></b></font>
;</span>
;</span>
;</layer>
;</ilayer><br>
;<!----------Menu 5 ends here---------->
;
;
;<div id="dropmenu0" style="position:absolute;left:0;top:0;layer-background-color:lightyellow;background-color:lightyellow;width:120;visibility:hidden;border:2px solid black;padding:0px">
;<script language="JavaScript1.2">
;if (document.all)
;dropmenu0.style.padding="4px";
;for (i=0;i<menu1.length;i++)
;document.write(menu1[i]);
;</script>
;</div>
;<script language="JavaScript1.2">
;if (document.layers){
;document.dropmenu0.captureEvents(Event.CLICK);
;document.dropmenu0.onclick=hidemenu2;
;}
;</script>
;
;<div id="dropmenu1" style="position:absolute;left:0;top:0;layer-background-color:lightyellow;background-color:lightyellow;width:120;visibility:hidden;border:2px solid black;padding:0px">
;<script language="JavaScript1.2">
;if (document.all)
;dropmenu1.style.padding="4px";
;for (i=0;i<menu2.length;i++)
;document.write(menu2[i]);
;</script>
;</div>
;<script language="JavaScript1.2">
;if (document.layers){
;document.dropmenu1.captureEvents(Event.CLICK);
;document.dropmenu1.onclick=hidemenu2;
;}
;</script>
;
;<div id="dropmenu2" style="position:absolute;left:0;top:0;layer-background-color:lightyellow;background-color:lightyellow;width:120;visibility:hidden;border:2px solid black;padding:0px">
;<script language="JavaScript1.2">
;if (document.all)
;dropmenu2.style.padding="4px";
;for (i=0;i<menu3.length;i++)
;document.write(menu3[i]);
;</script>
;</div>
;<script language="JavaScript1.2">
;if (document.layers){
;document.dropmenu2.captureEvents(Event.CLICK);
;document.dropmenu2.onclick=hidemenu2;
;}
;</script>
;
;<div id="dropmenu3" style="position:absolute;left:0;top:0;layer-background-color:lightyellow;background-color:lightyellow;width:120;visibility:hidden;border:2px solid black;padding:0px">
;<script language="JavaScript1.2">
;if (document.all)
;dropmenu3.style.padding="4px";
;for (i=0;i<menu4.length;i++)
;document.write(menu4[i]);
;</script>
;</div>
;<script language="JavaScript1.2">
;if (document.layers){
;document.dropmenu3.captureEvents(Event.CLICK);
;document.dropmenu3.onclick=hidemenu2;
;}
;</script>
;
;<div id="dropmenu4" style="position:absolute;left:0;top:0;layer-background-color:lightyellow;background-color:lightyellow;width:120;visibility:hidden;border:2px solid black;padding:0px">
;<script language="JavaScript1.2">
;if (document.all)
;dropmenu4.style.padding="4px";
;for (i=0;i<menu5.length;i++)
;document.write(menu5[i]);
;</script>
;</div>
;<script language="JavaScript1.2">
;if (document.layers){
;document.dropmenu4.captureEvents(Event.CLICK);
;document.dropmenu4.onclick=hidemenu2;
;}
;</script>
;
[`caption00`]
Kind=S
Value=Menu item caption00
[`caption01`]
Kind=S
Value=Menu item caption01
[`caption02`]
Kind=S
Value=Menu item caption02
[`caption10`]
Kind=S
Value=Menu item caption10
[`caption11`]
Kind=S
Value=Menu item caption11
[`caption12`]
Kind=S
Value=Menu item caption12
[`caption20`]
Kind=S
Value=Menu item caption20
[`caption21`]
Kind=S
Value=Menu item caption21
[`caption22`]
Kind=S
Value=Menu item caption22
[`caption30`]
Kind=S
Value=Menu item caption30
[`caption31`]
Kind=S
Value=Menu item caption31
[`caption32`]
Kind=S
Value=Menu item caption32
[`caption40`]
Kind=S
Value=Menu item caption40
[`caption41`]
Kind=S
Value=Menu item caption41
[`caption42`]
Kind=S
Value=Menu item caption42
[`link00`]
Kind=U
Value=Test00.htm
[`link01`]
Kind=U
Value=Test01.htm
[`link02`]
Kind=U
Value=Test02.htm
[`link10`]
Kind=U
Value=Test10.htm
[`link11`]
Kind=U
Value=Test11.htm
[`link12`]
Kind=U
Value=Test12.htm
[`link20`]
Kind=U
Value=Test20.htm
[`link21`]
Kind=U
Value=Test21.htm
[`link22`]
Kind=U
Value=Test22.htm
[`link30`]
Kind=U
Value=Test30.htm
[`link31`]
Kind=U
Value=Test31.htm
[`link32`]
Kind=U
Value=Test32.htm
[`link40`]
Kind=U
Value=Test40.htm
[`link41`]
Kind=U
Value=Test41.htm
[`link42`]
Kind=U
Value=Test42.htm